package com.itcast.springboot.waste_recovery.mapper;

import com.itcast.springboot.response.MyOrderRes;
import com.itcast.springboot.response.StaffOrderRes;
import com.itcast.springboot.waste_recovery.domain.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单 Mapper 接口
 * </p>
 *
 * @author 小破烂
 * @since 2020-08-23
 */
public interface OrderMapper extends BaseMapper<Order> {
    public List<MyOrderRes> getMyOrders(@Param("userId") Integer userId, @Param("orderStatus") Integer orderStatus);

    public List<StaffOrderRes> getStaffOrderRes(@Param(value = "orderStaffId") Integer staffId, @Param(value = "orderStatus") Integer orderStatus);
}
